package com.yuwei.home.adapter

import android.graphics.Color
import androidx.cardview.widget.CardView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.yuwei.common.entity.MenuEntity
import com.yuwei.home.R

class HomeMenuAdapter : BaseQuickAdapter<MenuEntity, BaseViewHolder>(
    R.layout.home_menu_item
) {
    override fun convert(holder: BaseViewHolder, item: MenuEntity) {
        holder.setText(R.id.home_menu_title,item.title)
        holder.setImageResource(R.id.home_menu_image,item.image)
    }
}